In [7]:
from ggplot import ggplot, diamonds, aes, geom_density, scale_color_brewer, facet_wrap
In [2]:
diamonds.head()
Out[2]:
In [3]:
%matplotlib inline
In [4]:
ggplot(diamonds, aes(x='price', color='clarity')) + \
geom_density() + \
scale_color_brewer(type='div', palette=7) + \
facet_wrap('cut')
Out[4]:
The plots appear so ggplot is working.
In [ ]: